package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

@Entity
@Table(name = "sl_dcms_eventType")
public class EventType extends Root{

	@Column(nullable = true)
	private String eventName;//事件名称
	
	@Column(nullable = true)
	private String eventIdentify;//事件编码
	
	@Column(nullable = true)
	private int eventOrder;//事件顺序

	@Column(nullable = true)
	private String eventParent;//父级事件
	
	@Column(nullable = true)
	private float eventWeight;//事件权重
	
	@Column(nullable = true)
	private float processLimit;//处理时限
	
	@Column(nullable = true)
	private float acceptLimit;//接受时限
	
	@Column(name = "firstRewardScore", nullable = true, columnDefinition="double default 0")
	private double firstRewardScore;//首次奖励积分
	
	@Column(name = "rewardScore", nullable = true, columnDefinition="double default 0")
	private double rewardScore;//累计奖励积分
	
	@Column(name = "memo" ,nullable = true)
	private String memo;//备注
	
	@ManyToOne
	@JoinColumn(name = "eventLevel_id",nullable = true)
	private Option eventLevel;//组织层级
	
	@Column(name = "iconAddress", nullable = true)
	private String iconAddress;//图标地址
	
	/*******  用于判断是否需要当前编码  ******/
	// 人员
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean userShow = true;
	// 部件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean partShow = true;
	// 网格
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean gridShow = true;
	// 事件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean eventShow = true;
	
	/****** 区别移动端显示 ******/
	
	@Column(nullable=false,columnDefinition="INT default 0") 
	private int isMobileShow;
	
	public int getIsMobileShow() {
		return isMobileShow;
	}

	public void setIsMobileShow(int isMobileShow) {
		this.isMobileShow = isMobileShow;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getEventIdentify() {
		return eventIdentify;
	}

	public void setEventIdentify(String eventIdentify) {
		this.eventIdentify = eventIdentify;
	}

	public int getEventOrder() {
		return eventOrder;
	}

	public void setEventOrder(int eventOrder) {
		this.eventOrder = eventOrder;
	}

	public String getEventParent() {
		return eventParent;
	}

	public void setEventParent(String eventParent) {
		this.eventParent = eventParent;
	}

	public float getEventWeight() {
		return eventWeight;
	}

	public void setEventWeight(float eventWeight) {
		this.eventWeight = eventWeight;
	}

	public float getProcessLimit() {
		return processLimit;
	}

	public void setProcessLimit(float processLimit) {
		this.processLimit = processLimit;
	}

	public float getAcceptLimit() {
		return acceptLimit;
	}

	public void setAcceptLimit(float acceptLimit) {
		this.acceptLimit = acceptLimit;
	}

	public Option getEventLevel() {
		return eventLevel;
	}

	public void setEventLevel(Option eventLevel) {
		this.eventLevel = eventLevel;
	}

	public String getIconAddress() {
		return iconAddress;
	}

	public void setIconAddress(String iconAddress) {
		this.iconAddress = iconAddress;
	}

	public boolean isUserShow() {
		return userShow;
	}

	public void setUserShow(boolean userShow) {
		this.userShow = userShow;
	}

	public boolean isPartShow() {
		return partShow;
	}

	public void setPartShow(boolean partShow) {
		this.partShow = partShow;
	}

	public boolean isGridShow() {
		return gridShow;
	}

	public void setGridShow(boolean gridShow) {
		this.gridShow = gridShow;
	}

	public boolean isEventShow() {
		return eventShow;
	}

	public void setEventShow(boolean eventShow) {
		this.eventShow = eventShow;
	}

	public double getFirstRewardScore() {
		return firstRewardScore;
	}

	public void setFirstRewardScore(double firstRewardScore) {
		this.firstRewardScore = firstRewardScore;
	}

	public double getRewardScore() {
		return rewardScore;
	}

	public void setRewardScore(double rewardScore) {
		this.rewardScore = rewardScore;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
}
